<?php

namespace App\Http\Controllers\Index;
use App\Facades\Site;
use Illuminate\Support\Facades\Request;
use Jenssegers\Agent\Facades\Agent;
use Style;

class MobileController extends CommonController{

    /**
     * @param $type
     * @return mixed
     */
    public function help()
    {
        if(Agent::isMobile() || Agent::isTablet()){
            //一般处理
            return redirect()->guest(Site::get('mobile_web_address').'/mobile');//转到手机站
        }
        return Style::view("index.mobileHelp");
    }

}